#增加一下编码器的路径,
set(tool_paths     #支持多个路径识别
    /opt/fullhan/toolchain/arm-fullhanv3-linux-uclibcgnueabi-b6/    
)  
#设置list值
foreach(tpath ${tool_paths}) 
     message("curpath ${tpath}")
     if(EXISTS ${tpath})
        set(tools ${tpath})
        message("set cross build tool ${tools}")
        break() 
     endif()
endforeach(tpath)   #结束

set(CMAKE_C_COMPILER ${tools}/bin/arm-fullhanv3-linux-uclibcgnueabi-gcc)
set(CMAKE_CXX_COMPILER ${tools}/bin/arm-fullhanv3-linux-uclibcgnueabi-g++)
set(CMAKE_SYSTEM_NAME Linux)

link_directories(${PROJECT_SOURCE_DIR}/lib/fh8626/)
option(HAVE_REPLAY "use REPLAY MOD " ON)